package time

import (
	"github.com/araddon/dateparse"
	"time"
)

func GetTimeYMd() string {
	return time.Now().Format("2006-01-02")
}

func GetTimeYMdHIS() string {
	return time.Now().Format("2006-01-02 15:04:05")
}

func TimeFormat(time string) (time.Time,error) {
	return dateparse.ParseAny(time)
}